package com.springboot7x.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment;

import java.util.Map;

@SpringBootApplication
public class DemoApplication {

    public static void main(String[] args) {
       ConfigurableApplicationContext applicationContext=SpringApplication.run(DemoApplication.class, args);
        ConfigurableEnvironment configurableEnvironment= applicationContext.getEnvironment();
        Map<String,Object> map1= configurableEnvironment.getSystemEnvironment();
        Map<String ,Object> map2=configurableEnvironment.getSystemProperties();
        System.out.println(map1);
        System.out.println(map2);




    }

}
